/*
 * Copyright (c) 2016 zhangcm. All Rights Reserved.
 */
package com.jnzc.ocr.rest.app.shop.param.app;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * @author zhangcm
 * @version 1.0, 2017/9/16
 */
@ApiModel(description = "供应商保存参数")
public class AppSupplierSaveParam {

    @ApiModelProperty(value = "ID")
    private Long id;
    @ApiModelProperty(value = "名称", required = true, allowableValues = "range[0, 20]")
    private String name;
    @ApiModelProperty(value = "获取方式", required = true)
    private Integer accessType;
    @ApiModelProperty(value = "供应商分类ID", required = true)
    private Long supplierCategoryId;
    @ApiModelProperty(value = "地址", allowableValues = "range[0, 200]")
    private String address;
    @ApiModelProperty(value = "联系方式", allowableValues = "range[0, 20]")
    private String contactWay;
    @ApiModelProperty(value = "进货总额")
    private BigDecimal stockAmount;
    @ApiModelProperty(value = "欠款")
    private BigDecimal arrearAmount;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAccessType() {
        return accessType;
    }

    public void setAccessType(Integer accessType) {
        this.accessType = accessType;
    }

    public Long getSupplierCategoryId() {
        return supplierCategoryId;
    }

    public void setSupplierCategoryId(Long supplierCategoryId) {
        this.supplierCategoryId = supplierCategoryId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContactWay() {
        return contactWay;
    }

    public void setContactWay(String contactWay) {
        this.contactWay = contactWay;
    }

    public BigDecimal getStockAmount() {
        return stockAmount;
    }

    public void setStockAmount(BigDecimal stockAmount) {
        this.stockAmount = stockAmount;
    }

    public BigDecimal getArrearAmount() {
        return arrearAmount;
    }

    public void setArrearAmount(BigDecimal arrearAmount) {
        this.arrearAmount = arrearAmount;
    }
}
